﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MemberCompanyInfo.aspx.cs" Inherits="Pages_MemberCompanyInfo" MasterPageFile="~/Admin/MasterPage.master" Title="成员公司信息管理" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div class="toolbar">
        <XCL:LinkBox ID="lbAdd" runat="server" BoxHeight="679px" BoxWidth="440px" Url="MemberCompanyInfoForm.aspx"
            IconLeft="../images/icons/icon005a2.gif"><b>添加成员公司信息</b></XCL:LinkBox>
        关键字：<asp:TextBox ID="txtKey" runat="server"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" Text="查询" />
    </div>
    <asp:GridView ID="gvMemberCompanyInfo" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="ObjectDataSource1" AllowPaging="True" AllowSorting="True" CssClass="m_table" PageSize="20" CellPadding="0" GridLines="None" EnableModelValidation="True">
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="编号" SortExpression="ID" InsertVisible="False" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" CssClass="key" />
            </asp:BoundField>
            <asp:BoundField DataField="UserName" HeaderText="用户名称" SortExpression="UserName" />
            <asp:BoundField DataField="CompanyName" HeaderText="公司名称" SortExpression="CompanyName" />
            <asp:BoundField DataField="Scale" HeaderText="" SortExpression="Scale" />
            <asp:BoundField DataField="BusinessType" HeaderText="商业类型" SortExpression="BusinessType" />
            <asp:BoundField DataField="Products" HeaderText="专业" SortExpression="Products" />
            <asp:BoundField DataField="CompanySite" HeaderText="公司站点" SortExpression="CompanySite" />
            <asp:BoundField DataField="Tel" HeaderText="电话" SortExpression="Tel" />
            <asp:BoundField DataField="Fax" HeaderText="传真" SortExpression="Fax" />
            <asp:BoundField DataField="LinkMan" HeaderText="链接男人" SortExpression="LinkMan" />
            <asp:BoundField DataField="Mobile" HeaderText="手机" SortExpression="Mobile" />
            <asp:BoundField DataField="Email" HeaderText="邮件" SortExpression="Email" />
            <asp:BoundField DataField="Address" HeaderText="地址" SortExpression="Address" />
            <asp:BoundField DataField="ZipCode" HeaderText="邮政编码" SortExpression="ZipCode" />
            <asp:BoundField DataField="Pic" HeaderText="图片" SortExpression="Pic" />
            <asp:BoundField DataField="BackupNo" HeaderText="备份编号" SortExpression="BackupNo" />
            <asp:BoundField DataField="BackupOperator" HeaderText="备份操作者" SortExpression="BackupOperator" />
            <asp:BoundField DataField="BackupTime" HeaderText="备份时间" SortExpression="BackupTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="BackupMemo" HeaderText="备份注释" SortExpression="BackupMemo" />
            <XCL:LinkBoxField HeaderText="编辑" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="MemberCompanyInfoForm.aspx?ID={0}" Height="679px" Text="编辑" Width="440px" Title="编辑成员公司信息">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </XCL:LinkBoxField>
            <asp:TemplateField ShowHeader="False" HeaderText="删除">
                <ItemTemplate>
                    <asp:LinkButton ID="btnDelete" runat="server" CausesValidation="False" CommandName="Delete"
                        OnClientClick='return confirm("确定删除吗？")' Text="删除"></asp:LinkButton>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
            没有符合条件的数据！
        </EmptyDataTemplate>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="NXCMS.Sys.MemberCompanyInfo"
        DeleteMethod="Delete" EnablePaging="True" OldValuesParameterFormatString="original_{0}"
        SelectCountMethod="SearchCount" SelectMethod="Search" SortParameterName="orderClause"
        TypeName="NXCMS.Sys.MemberCompanyInfo">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtKey" Name="key" PropertyName="Text" Type="String" />
            <asp:Parameter Name="orderClause" Type="String" />
            <asp:Parameter Name="startRowIndex" Type="Int32" />
            <asp:Parameter Name="maximumRows" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <XCL:GridViewExtender ID="gvExt" runat="server">
    </XCL:GridViewExtender>
</asp:Content>